home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
oh_my_cake.swf
/
scripts
/
frame_26
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
818b
|
23 lines
set("/:x1",_root.pic._x);
set("/:y1",_root.pic._y);
set("/:ste",(eval("/:scale") - 50) / 5);
ss = Number(eval("/:ste"));
set("/:p",(10 - eval("/:x1")) / Number(eval("/:ste")));
set("/:q",(10 - eval("/:y1")) / Number(eval("/:ste")));
if(Number(eval("/:b")) == 1 and Number(eval("/:scale") < 200))
{
set("/:scale",eval("/:scale") + 5);
}
if(Number(eval("/:s")) == 1 and Number(eval("/:scale")) > 50)
{
set("/:scale",eval("/:scale") - 5);
set("/:x1",eval("/:x1") + eval("/:p"));
set("/:y1",eval("/:y1") + eval("/:q"));
}
setProperty("/pic", _xscale, eval("/:scale"));
setProperty("/pic", _yscale, eval("/:scale"));
set("/:l",600 * eval("/:scale") * 0.01 - 300);
set("/:h",440 * eval("/:scale") * 0.01 - 220);
setProperty("/pic", _X, eval("/:x1"));
setProperty("/pic", _Y, eval("/:y1"));